//
//  ConsultModel.m
//  110
//
//  Created by lanou on 16/4/9.
//  Copyright © 2016年 乔砥. All rights reserved.
//

#import "ConsultModel.h"

@implementation ConsultModel
+(NSMutableArray *)getData:(NSDictionary *)dic
{
    
    NSMutableArray *modelArray = [NSMutableArray array];
    NSMutableArray *itemsArray = dic[@"items"];
    for (NSDictionary *dic in itemsArray)
    {
        ConsultModel *model = [[ConsultModel alloc]init];
        [model setValuesForKeysWithDictionary:dic];
        [modelArray addObject:model];
    }
    
    return modelArray;
    
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    
    if ([key isEqualToString:@"id"]) {
        [self setValue:value forKey:@"myId"];
    }
}

@end
